@import "~compass-mixins/lib/compass/css3";

.reply-box {
  width: 100%;
  border-left: 1px solid $border_box_color;
  .col-lg-12 {
    background-color: $background_box_msg_color;
    margin-left: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
  }
  img {
    @include transform(scale(1));
    @include transition(all 0.35s);
  }
  // img:hover {
  //   @include transform(scale(0.9));
  //   @include filter(brightness(0.9));
  // }
  @media (min-width: 992px) {
    .col-lg-12 {
    }
  }
}

.reply-icon {
  position: relative;
  left: -10px;
  i {
    font-size: 20px;
  }
}

@media (min-width: 992px) {
  .reply-avatar {
    width: 5%;
  }
}

@media (max-width: 991px) {
  .reply-avatar {
    width: 40px;
  }
}

.reply-avatar {
  padding-top: 20px;
  padding-bottom: 20px;
  position: absolute;
  z-index: 1;
  width: 40px;
  img {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    @include border-radius(50%);
  }
  h3 {
    font-size: $font-size-base;
    margin: 8px 0;
    text-align: center;
    width: 60px;
    color: $font_minor_color;
    position: relative;
    left: -10px;

  }
}

@media (min-width: 992px) {
  .reply-list {
  }
}

@media (max-width: 1440px) {
  .reply-list {
  }

  .icon-process .unline,
  .process-icon img {
    transform: scale(.5);
  }
  .icon-process .unline {
    width: 50px;
  }
}

.reply-list {
  .box-body {
    padding-left: 70px;
  }

  .box-header {
    margin-left: 70px;
    padding-left: 0;
    padding-bottom: 10px;
    width: 95%;
    display: table;
  }
  &.box {
    @include box-shadow(none);
    background-color: $background_box_msg_color;
  }
  .box-body {
    .user-reply {
      padding: 20px;
      background-color: white;
      //margin-left: 80px;
    }
    .mat-list {
      background-color: $background_numnal_color;
      margin-bottom: 10px;
      //margin-left: 80px;
      padding-left: 80px;
      padding: 0px;
      display: table;
      width: 100%;
      .mat-list-item {
        padding: 20px;
        width: 100%;
        display: block;
        /** 结果样式 **/
        &.reply-outcome {

          position: relative;
          border: 1px solid #eb6120;
          @include border-radius($border-radius);
          background-color: rgba(255, 252, 250, 1);
        }
        &.reply-outcome:before {
          content: "\e630";
          background-color: white;
          width: 30px;
          height: 30px;
          color: #eb6120;
          position: absolute;
          top: 9px;
          right: 13px;
          font-family: "iconfont" !important;
          font-size: 50px;
          font-style: normal;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }
        .mat-list-item-content {
          height: auto;
          padding: 0;
          display: block;
        }
        .mat-list-avatar {
        }
        .mat-list-text {
        }
        .mat-line {
          position: relative;
          padding-bottom: 5px;
          color: $font_minor_color;
          .md-list-text {
            color: #333;
            white-space: normal;
          }
          .md-list-date {
            color: $font_assist_color;
          }
        }
      }
    }

  }
  .mat-list .mat-list-item {
    margin-top: 24px;
  }
  .mat-list > .mat-list-item:first-child {
    margin-top: 0;
  }
  .mat-list .mat-list-item .mat-list-avatar {
    float: left;
    width: 34px;
    height: 34px;
  }
  .mat-list .mat-list-item .mat-list-text {
    padding-right: 0;
    display: block;
    margin-left: 40px;
    width: auto;
  }
  .mat-list-text {
    font-size: 13px;

    h3 {
      color: $font_assist_color;
    }
  }
}

.reply-header-content {
  position: relative;

  width: 100%;
  h3 {
    display: block;
    color: $font_assist_color;
    font-size: $font-size-base;
    margin-top: 10px;
    margin-bottom: 5px;

  }
}

.reply-name {
  color: #ff6600;
}

/**回复按钮**/
.button-reply-mini {
  position: absolute;
  right: 0px;
  top: -3px;
  &:hover {
    > button {
      > span, i {
        color: #eb6120;
      }
    }
  }
  button {
    padding: 0;
    min-width: 0;
    line-height: 19px

  }
  i {
    font-size: 18px;
    color: #bbbbbb;
    padding-right: 5px;
    position: relative;
    bottom: -1px;
  }
  span {
    color: $font_minor_color;
    font-size: 13px;
  }
}

.reply-content-media-group {
  padding-top: 15px;
  position: relative;
  float: left;
  border-top: 1px solid #dddddd;
}

/** 回复列表的内容图片列**/

.reply-content {
  padding-left: 0;
  p {
    margin-bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  ul {
    padding-left: 0;
    li {
      float: left;
      list-style-type: none;
    }
  }
}

.reply-content-media-group {
  position: relative;
  width: 100%;
  .reply-images-container {
    float: left;
    width: 100%;
    padding-bottom: 10px;
    ul {
      padding-left: 0;
      li {
        list-style-type: none;
      }
    }

  }
  .reply-file-container {
  }

}

.reply-file-container {

}

/** 回复列表的文件列**/
.reply-file-container {

  .ibox-icon {
    a {
      color: #FFF;
    }
    float: left;
    display: block;
    width: 34px;
    height: 34px;
    color: white;
    @include border-radius(0.2rem !important);
    text-align: center;
    background: #2196F3;
    &.ibox-color-orange {
      background: #FFB230;
    }
    &.ibox-color-green {
      background-color: #2ECB83;
    }
    &.ibox-color-blue {
      background-color: #579FE7;
    }
    &.ibox-color-red {
      background-color: #FF483A;
    }
    &.ibox-color-gray {
      background-color: gray;
    }
    i {
      line-height: 34px;
      font-style: normal;
      font-size: 20px;
    }
  }
}

.container-file-content {
  float: left;
  padding-left: 8px;
  padding-right: 50px;
  p {
    margin-bottom: 4px;
    float: left;
    width: 100%;
  }
  h6 {
    font-size: 13px;
    padding: 0 0 0 0;
    margin: 0 0 4px 0;
    float: left;
  }
}

/**用户回复样式**/
.user-reply {
  .mat-input-element {
    min-height: 70px;
    background: #ffffff;
    padding: 5px;

  }
  .mat-form-field-infix {
    @include border-radius(3px #cccccc);
  }
}

.reply-file {

  width: 100%;
  .callout {
    &.callout-danger {
      float: left;
      width: 100%;
      margin: 10px 0;
      padding: 10px;
    }
  }

}

.reply-file-preview {
  ul {
    width: 100%;
    padding-left: 0px;
    li {
      list-style-type: none;
      float: left;
      padding-left: 0;
      padding-right: 10px;
      position: relative;
      i {
        position: absolute;
        right: 3px;
        top: -3px;
        font-size: 16px;
        color: #cccccc;
        cursor: pointer;
        z-index: 1;
      }
      .icon-other {
        font-size: 88px;
        z-index: 0;
        color: rgba(8, 8, 8, 0.95);
      }
    }
  }
}

.preview-box-media {

  img {
    width: 88px;
    height: 88px;
    border: 1px solid #eeeeee;
    @include border-radius(3px);
    @include box-shadow(1px 2px #eeeeee);
  }
  i {
    width: 88px;
    height: 88px;
    display: block;
    position: relative !important;
    font-size: 100px;
    line-height: 100px;
    background: #eeeeee;
  }
  h3 {
    font-size: $font-size-sm;
    font-size: 0.875rem;
    margin-top: 8px;
    margin-bottom: 8px;
    width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }
  &.single-file-upload {
    position: relative;
    i {
      position: absolute !important;
      left: 80px;
      top: -8px;
      font-size: 20px;
      line-height: normal;
      color: #cccccc;
      background: none;
    }
  }
}

.replay-progress {
  position: relative;
  display: flex;
  width: 100%;
  line-height: 20px;
  span {
    width: 72px;
    color: #999999;
  }
  .mat-progress-bar {
    top: 8px;
  }
}

.reply-button-group {
  width: 100%;

  /* position: relative; */
  display: inline-block;
  padding-top: 20px;
  padding-bottom: 10px;
  .button-group-left {
    width: 50%;
    float: left;
    > span {
      float: left;
    }
    button {
      float: left;
      margin-left: 10px;
    }
  }
  .button-group-right {
    width: 50%;
    float: right;
    button {
      float: right;
      margin-left: 10px;
      font-size: 13px;
      &:first-child {
        margin-left: 10px;
      }
    }
  }
  .fileinput-button {
  }
}

.fileinput-button {
  position: relative;
  display: inline-block;
  overflow: hidden;

  &.mat-raised-button {
    vertical-align: middle;
  }
  min-width: 135px;
}

.fileinput-button input {
  position: absolute;
  right: 0px;
  top: 0px;
  opacity: 0;
  -ms-filter: 'alpha(opacity=0)';
  font-size: 200px;
  margin-right: 10px;

}

.close-reply{
  position: absolute;
  right: 1px;
  top: 1px;
  color: gray;
  display: none;
  cursor: pointer;
}

.reply-wrapper1 {
  height: 100%;
  zbj-reply {
    border-left: 0;
    height: 100%;
    display: block;
    padding-bottom: 20px;
    padding-top: 20px;
    > .col-lg-12 {
      padding: 0;
      margin-left: 0;
      border: 0;
      background-color: transparent;
      height: 100%;
      > .reply-avatar {
        width: 40px;
      }
      > .reply-list.box {
        background-color: transparent;
        height: 100%;
        margin-bottom: 0;
        overflow: auto;
        overflow-x: hidden;
        width: 95%;
        margin-left: 70px;
        > .box-header {
          margin-left: 0px;
          width: 100%
        }
        > .box-body {

          padding: 0;
          display: table;
          width: 100%;

          > md-list {
            //overflow-x: hidden;
            overflow-y: auto;
            position: relative;
            display: block;
            margin-bottom: 0;
            padding-right: 10px;
            padding-bottom: 10px;

            + div {
              position: fixed;

              .close-reply{
             display: block;
              }
            }
            @media (min-width: 1441px) {
              + div {
                width: 85%;
                left: 130px;
                bottom: 50px;
              }
            }
            @media (max-width: 1440px) {
              + div {
                width: 85%;
                left: 100px;
                bottom: 35px;
              }
            }
            > md-list-item {
              background-color: #fafafa;
              border: 1px solid #eeeeee;
              border-radius: 4px;
              padding: 20px 30px;
              margin-top: 10px;
              &:first-child {
                margin-top: 0;
              }
            }
          }
          .ng-trigger-fadeIn > .user-reply {
            margin: 0 -30px;
            box-shadow: 0px -4px 10px -7px rgba(0, 0, 0, .7);
            position: relative;
            margin-top: 10px;
            padding: 20px 50px;
          }
        }
      }
    }
  }
}